package com.example.mybatisplus.mapper;

import com.example.mybatisplus.model.domain.Dot;
import com.example.mybatisplus.model.domain.Room;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.MapKey;

import java.util.Map;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zzy
 * @since 2024-06-24
 */
public interface RoomMapper extends BaseMapper<Room> {

    List<Map<String, Object>> searchRoomByAreaNameAndBuildingNameAndRoomName(Dot dot);


    List<Room> selectRoomByBuildingID(Long buildingID);

    @MapKey("ID")
    List<Map<String, Object>> selectBuildingLivingCond(Map<String, Object> names);
}
